//let thost = 'localhost:9200';
let thost = '10.160.12.34:9200';
//let thost = '172.30.199.166:9200';
module.exports.includeClient = false
module.exports.dicServer = '10.160.12.192';
//module.exports.dicServer = '172.30.199.163\\dev';
module.exports.dicServerUser = 'sa';
module.exports.dicServerPassword = 'Docimax@123';
module.exports.mapServerCfg = {
    server: '10.160.12.192',
    database: 'MR_FS_DB',
    user: 'sa',
    password: 'Docimax@123',
    port: 1433
};
//module.exports.dicServer = '172.30.199.163\\dev';
module.exports.host = thost;
//module.exports.index = 'mrfs';
module.exports.index = 'mr5';
//module.exports.index = 'nestedindex';
module.exports.aggSize = 10000; //max group allowed

module.exports.hightlightpretag = "<span style='color:red'>"
module.exports.hightlightposttag = "</span>"
// module.exports.hightlightpretag = undefined;
// module.exports.hightlightposttag = undefined;
module.exports.minScore = 0.2;
module.exports.allSize = 200000000;
module.exports.timeout = '750000ms';
module.exports.resultFlatMode = true;//flat result change nested doc to column
module.exports.resetColumnName = true;//reset column name
module.exports.nested = true//data source use nested doc mode
module.exports.AsyncParallelOperator = 'asyp'
//module.exports.nullAsEmpty = false
module.exports.defaultPreWordCound = 5;
module.exports.defaultPostWordCound = 5;
module.exports.maxBucketSize = 10000000
module.exports.trace = true
module.exports.replaceSingleQuotes = '#'
//module.exports.tempPropertPre = 'temperary'
module.exports.codeSingleQuote = function (s) {
    var rstr = new RegExp("'", "g");
    return s.replace(rstr, this.replaceSingleQuotes);
}
module.exports.decodeSingleQuote = function (s) {
    var rstr = new RegExp(this.replaceSingleQuotes, "g");
    return s.replace(rstr, "'");
}
module.exports.authorization = false
module.exports.compactOrderedColumn = true
module.exports.columnmapping = {
    ABOCode: '血型编码',
    ABO: '血型',
    ADLAfter: '日常生活能力评定量表得分 出院',
    ADLBefore: '日常生活能力评定量表得分 入院',
    AdmissionDateTime: '入院时间',
    AdmissionPathCode: '入院途径编码',
    AdmissionPath: '入院途径',
    AdmittedCode: '入院病情编码',
    Admitted: '入院病情',
    Adress: '联系人住址',
    Age: '年龄',
    AnesthesiaLevelCode: '操作麻醉分级编码',
    AnesthesiaLevel: '操作麻醉分级',
    AnesthesiaLevelCode: '麻醉分级编码',
    AnesthesiaLevel: '麻醉分级',
    AnesthesiaTypeCode: '操作麻醉方式编码',
    AnesthesiaType: '操作麻醉方式',
    AnesthesiaTypeCode: '麻醉方式编码',
    AnesthesiaType: '麻醉方式',
    AnesthesiologistCode: '操作麻醉医生编码',
    Anesthesiologist: '操作麻醉医生',
    AnesthesiologistCode: '麻醉医生编码',
    Anesthesiologist: '麻醉医生',
    AutopsyCode: '死亡患者尸检编码',
    Autopsy: '死亡患者尸检',
    BirthAreaCode: '出生地址（县）编码',
    BirthArea: '出生地址（县）',
    BirthCityCode: '出生地址（市）编码',
    BirthCity: '出生地址（市）',
    Birthday: '出生日期',
    BirthProvinceCode: '出生地址（省）编码',
    BirthProvince: '出生地址（省）',
    CicatrizeCode: '操作愈合等级编码',
    Cicatrize: '操作愈合等级',
    CicatrizeCode: '愈合等级编码',
    Cicatrize: '愈合等级',
    ClinicalOperateName: '临床操作名称',
    ClinicDiagnosis: '临床诊断',
    CodeState: '编码状态',
    ConsultintNum: '患者就诊号',
    ContactName: '联系人姓名',
    CodeTime: '编码时间',
    CriticalMRCode: '危急重病例编码',
    CriticalMR: '危急重病例',
    CurrentAddressDetail: '现在住址详细地址',
    CurrentAreaCode: '现在地址（县）编码',
    CurrentArea: '现在地址（县）',
    CurrentCityCode: '现在地址（市）编码',
    CurrentCity: '现在地址（市）',
    CurrentPostCode: '现在住址邮编',
    CurrentProvinceCode: '现在地址（省）编码',
    CurrentProvince: '现在地址（省）',
    DCPCIAfterDay: '脑损伤患者昏迷时间  入院后  天',
    DCPCIAfterHour: '脑损伤患者昏迷时间  入院后  时',
    DCPCIAfterMinute: '脑损伤患者昏迷时间  入院后  分',
    DCPCIBeforeDay: '脑损伤患者昏迷时间  入院前  天',
    DCPCIBeforeHour: '脑损伤患者昏迷时间  入院前  小时',
    DCPCIBeforeMinute: '脑损伤患者昏迷时间  入院前  分',
    DiagnosisICDCode: '北京诊断编码',
    DiagnosisICDName: '北京诊断',
    DiagnosisGBICDCode: '国标诊断编码',
    DiagnosisGBICDName: '国标诊断',
    DiagnosisOrder: '诊断顺序',

    DiagnosticbasisCode: '出院诊断依据编码',
    Diagnosticbasis: '诊断依据',
    DifferentiationCode: '分化程度编码',
    Differentiation: '分化程度',
    DischargeDateTime: '出院时间',
    DischargePathCode: '离院方式编码',
    DischargePath: '离院方式',
    DischargeStateCode: '疗效编码',
    DischargeState: '疗效',

    EntryTime: '进重症监护室时间',
    ExternalInjuryICDCode: '北京损伤中毒编码',
    ExternalInjuryICDName: '北京损伤中毒',

    FirstAssistantSurgeonCode: 'I助编码',
    FirstAssistantSurgeon: 'I助',
    FollowTerm: '随诊期限',
    FollowUpCode: '是否随诊编码',
    FollowUp: '是否随诊',
    GenderCode: '性别编码',
    Gender: '性别',
    HealthCard: '健康卡号',
    HospitalizedTimes: '住院次数',
    HukouAddressDetail: '户口住址详细地址',
    HukouAreaCode: '户口地址(县)编码',
    HukouArea: '户口地址(县)',
    HukouCityCode: '户口地址(市)编码',
    HukouCity: '户口地址(市)',
    HukouPostCode: '户口地址邮编',
    HukouProvinceCode: '户口地址(省)编码',
    HukouProvince: '户口地址(省)',
    ICUCode: '重症监护室名称编码',
    ICUName: '重症监护室名称',
    IDCard: '证件号码',
    IdTypeCode: '证件类型编码',
    IdType: '证件类型',
    InDepartCode: '入院科别编码',
    InDepart: '入院科别',
    InpatientDay: '住院天数',
    InSickRoomCode: '入院病房编码',
    InSickRoom: '入院病房',
    InternalICDCode: '协和编码',
    InternalICDName: '协和名称',
    InternalInjuryICDCode: '出协和损伤中毒编码',
    InternalInjuryICDName: '协和损伤中毒',

    InternalPathologyICDCode: '协和病理编码',
    InternalPathologyICDName: '协和病理',

    IntractableMRCode: '疑难病例编码',
    IntractableMR: '疑难病例',
    IsBabyCode: '是否婴儿编码',
    IsBaby: '是否婴儿',
    IsBabyCode: '过敏药物是否婴儿编码',
    IsBaby: '过敏药物是否婴儿',
    IsBabyCode: '门急诊是否婴儿编码',
    IsBaby: '门急诊是否婴儿',
    IsDrugAllergyCode: '药物过敏编码',
    IsDrugAllergy: '药物过敏',
    Marriage: '婚姻状态编码',
    MarriageCode: '婚姻状态',
    MCode: '肿瘤分期(M)编码',
    M: '肿瘤分期(M)',
    MRID: '病案号',
    MRQuantityCode: '病案质量编码',
    MRQuantity: '病案质量',
    NationalityCode: '国籍编码',
    Nationality: '国籍',
    NationCode: '民族编码',
    Nation: '民族',
    NativeProvinceCode: '籍贯（省）编码',
    NativeProvince: '籍贯（省）',
    NCode: '肿瘤分期(N)编码',
    N: '肿瘤分期(N)',
    Newborn_AdmissionWeight: '新生儿入院体重',
    NewBorn_Day: '新生儿年龄  天',
    NewBorn_Month: '新生儿年龄 月',
    NewBorn_Weight: '新生儿出生体重',
    NewDepCode: '转入科室编码',
    NewDeptName: '转入科室',
    OperateBeginTime: '操作开始时间',
    OperateBeginTime: '手术开始时间',
    OperateICDCode: '北京编码',
    OperateICDName: '北京名称',

    OperateLevelCode: '级别编码',
    OperateLevel: '级别',

    OperateOrder: '顺序',

    OperatorCode: '术者',
    OperatorName: '术者',
    OperateGBICDCode: '国标编码',
    OperateGBICDName: '国标名称',
    OutDepartCode: '出院科别编码',
    OutDepart: '出院科别',
    OutSickRoomCode: '出院病房编码',
    OutSickRoom: '出院病房',
    OutTime: '出重症监护室时间',
    PathologyICDCode: '北京病理编码',
    PathologyICDName: '北京病理',
    PathologyGBICDCode: '北京病理编码',
    PathologyGBICDName: '北京病理',
    PathologyNum: '病理号',
    // PathologyNum: '过敏药物病理号',
    // PathologyNum: '门急诊病理号',
    PatientName: '姓名',
    PaymentTypeCode: '医疗付款方式',
    PaymentType: '医疗付款方式',
    PhoneNum: '联系人电话',
    QualityDate1: '质控日期1',
    QualityDate2: '质控日期2',
    ReadmissionIn31Code: '出院31天再入院计划编码',
    ReadmissionIn31: '出院31天再入院计划',
    RelationCode: '联系人关系编码',
    Relation: '联系人关系',
    RescueSuccessTime: '成功次数',
    RescueTime: '抢救次数',
    RespiratorTime: '呼吸机使用时间',
    RhCode: 'RH血型编码',
    RH: 'RH血型',

    SecondAssistantCode: 'II助编码',
    SecondAssistantName: 'II助',
    SelfPayment: '自付金额',
    TCode: '肿瘤分期(T)编码',
    T: '肿瘤分期(T)',
    Totalcost: '住院总费用',
    TransferDate: '转入时间',
    TransferOrder: '转科顺序码',
    TumorclinicalCode: '肿瘤临床分期编码',
    Tumorclinical: '肿瘤临床分期',
    VocationCode: '职业编码',
    Vocation: '职业',
    WorkPostcode: '单位邮编',
    WorkTelephone: '单位电话',
    WorkUnit: '工作单位及地址',
};